package com.yunxi.sto.pojo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yunxi.core.web.DateJsonDeserializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(value="ExpCarVO 对象", description="体验车空闲表")
public class ExpCarFreeVO implements Serializable {

   @ApiModelProperty(value = "订单号")
   private String orderCustomerNo;

   @ApiModelProperty(value = "车辆VIN码")
   private String vin;

   @ApiModelProperty(value = "省名称(交付城市)")
   private String provinceName;

   @ApiModelProperty(value = "空置天数")
   private String freeDays;

   @ApiModelProperty(value = "起租时间")
   private Date hireStartDate;

   @ApiModelProperty(value = "退租时间")
   private Date hireEndDate;

   @ApiModelProperty(value = "省份代码")
   private String provinceCodes;

   @ApiModelProperty(value = "省份代码集合")
   private List<String> provinceCodeList;

   @ApiModelProperty(value = "结束时间")
   @JsonDeserialize(using = DateJsonDeserializer.class)
   @DateTimeFormat(pattern = "yyyy-MM-dd")
   private Date endTime;

   @ApiModelProperty(value = "开始时间")
   @JsonDeserialize(using = DateJsonDeserializer.class)
   @DateTimeFormat(pattern = "yyyy-MM-dd")
   private Date startTime;
}
